package com.musemun.pojo.Vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/5/15
 */
@Data
public class CrifoPageVo implements Serializable {
    @ExcelProperty("")
    @ApiModelProperty(value = "文物编号")

    private Long crNo;


//    @NonNull
    @ExcelProperty("图片")
    @ApiModelProperty(value = "文物图片")

    private String crPic;

    @ExcelProperty("名称")
    @ApiModelProperty(value = "文物名字")

    private String crName;

    @ExcelProperty("年代")
    @ApiModelProperty(value = "年代")

    private String crYear;

    @ExcelProperty("年号")
    @ApiModelProperty(value = "年号")

    private String crYearNum;

    @ExcelProperty("来源")
    @ApiModelProperty(value = "来源")

    private String crSource;

    @ExcelProperty("器型/材质")
    @ApiModelProperty(value = "器型")

    private String crType;


    @ExcelProperty("收储日期")
    @ApiModelProperty(value = "收储日期")
//    @TableField("crSaveDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")//数据库导出页面时json格式化
    @TableField(value="crSaveDate",fill= FieldFill.INSERT)
    private Date crSaveDate;


    @ExcelProperty("状态")
    @ApiModelProperty(value = "状态")
    @TableField("crState")
    private String crState;

    @ExcelProperty("收储仓库")
    @ApiModelProperty(value = "收储仓库")
    @TableField("crWarehouse")
    private String crWarehouse;

    @ExcelProperty("收储地点")
    @ApiModelProperty(value = "收储地点")
    @TableField("crAddr")
    private String crAddr;

    @ExcelProperty("数量")
    @ApiModelProperty(value = "数量")
    @TableField("crNum")
    private Integer crNum;

    @ExcelProperty("尺寸")
    @ApiModelProperty(value = "尺寸")
    @TableField("crSize")
    private String crSize;

    @ExcelProperty("入馆价值")
    @ApiModelProperty(value = "入馆价值")
    @TableField("crInValue")
    private String crInValue;

    @ExcelProperty("离馆价值")
    @ApiModelProperty(value = "离馆价值")
    @TableField("crOutValue")
    private String crOutValue;

    @ExcelProperty("录入日期")
    @ApiModelProperty(value = "录入日期")
//    @TableField("crRecordDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")//数据库导出页面时json格式化
    @TableField(value = "crRecordDate")
    private Date crRecordDate;

    @ExcelIgnore
    @ApiModelProperty(value = "是否清点")
    @TableField("crCheck")
    private Boolean crCheck;

    @ExcelIgnore
    @ApiModelProperty(value = "备注1")
    @TableField("Remark1")
    private String Remark1;

    @ApiModelProperty(value = "备注2")
    @TableField("Remark2")
    @ExcelIgnore
    private String Remark2;
    private Boolean IsSet;
}
